package student.stu23002123.chapter10;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutPutStream {
    public static void main(String[] args) throws IOException {
        FileOutputStream out = new FileOutputStream("C:\\Users\\Administrator\\IdeaProjects\\java202312\\src\\student\\stu23002123\\chapter10\\text.txt",true);
        String str = "好好好";
        byte[] bytes = str.getBytes();
        for (int i =0;i<bytes.length;i++)
            out.write(bytes[i]);

        out.close();

    }
}
